package com.netintech.common.constant;

/**
 * 通用常量信息
 * 
 * @author admin
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 窗口长度
     */
    public static final int SLIDE_WINDOW_LENGTH =128;

    /**
     * rtp的seqNum值达到多少次计数后进行重新循环（0-65535）
     */
    public static final int RTP_SEQ_NUM_LOOP_COUNT =65536;

    /**
     * rtp的seqNum分组后，每组最大值在最小值前面时，二者差值占RTP_SEQ_NUM_LOOP_COUNT的系数
     * 超过该数值，则对二者前后数值分开排序；否则对整体排序
     */
    public static final double SEQ_NUM_GROUP_MAX_MIN_INTERVAL_PERCENT =0.9;



}
